/*
 * 文件名: TestController.java
 * 版权: Copyright (c) 金晨数通有限公司-版权所有.
 */
package com.jacoco.hefei.maven.example.controller;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestParam;
import org.springframework.web.bind.annotation.RestController;

import com.jacoco.hefei.maven.example.service.DockerService;
import com.jacoco.hefei.maven.example.service.UserService;
import com.jacoco.hefei.maven.example.vo.Order;
import com.jacoco.hefei.maven.example.vo.User;

import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;

/**
 *
 * @类描述：
 *
 *
 * @创建时间：2021年8月10日 下午8:30:39
 *
 *
 */
@Api(value = "基础服务的接口",tags="基础服务的接口")
@RestController
@RequestMapping("/base")
public class LoginController {
    
    @Autowired
    UserService dockerService;
    
    @ApiOperation(notes = "登录",value = "登录")
    @GetMapping("/Login")
    public User Login(  @RequestParam("username") String username,@RequestParam("passwd") String passwd){
        User result =  dockerService.Login(username, passwd);
        return result;
    }
    @ApiOperation(notes = "更新密码",value = "更新密码")
    @GetMapping("/updatePw")
    public Boolean updatePw( @RequestParam("username") String username,@RequestParam("passwd") String passwd){
        Boolean result =  dockerService.updatePw(username, passwd);
        return result;
    }
  
    
}
